import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Index from '@/components/Index'

Vue.use(Router)

const Devicce = {template: '<h1>devicce</h1>'};

export default new Router({
  routes: [
    {
      path: '/hello',
      name: 'Hello',
      component: Hello
    },
    {
    	path: '/index',
    	name: 'Index',
    	component: Index,
      children:[
      {
        path: 'devicce',
        component: Devicce
      },
      ]
    }
  ]
})
